获取压力
功能表: getSupportGetPressureSwitchInfo
Flutter示例:
/// 获取压力事件号
/// 获取压力
libManager.send(evt: CmdEvtType.getStressSwitch, json: jsonEncode(json));
App收到的json字段:
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| on_off | int | 开关状态 1:开启 0:关闭 -1:无效 |
| start_hour | int | 开关时间段/提醒时间段 开始时间 时 |
| start_minute | int | 开关时间段/提醒时间段 开始时间 分 |
| end_hour | int | 开关时间段/提醒时间段 结束时间 时 |
| end_minute | int | 开关时间段/提醒时间段 结束时间 分 |
| remind_on_off | int | 压力提醒 1:开启 0:关闭 -1:无效 |
| repeat | int | 预留 |
| interval | int | 提醒间隔 单位分钟 默认60分钟 |
| high_threshold | int | 压力过高阈值 |
| stress_threshold | int | 通知类型 0:无效 1:允许通知 2:静默通知 3:关闭通知 功能表 getPressureNotifyFlagMode 开启有效 |
| notify_flag | int | 阈值 功能表 v2SendCalibrationThreshold 开启有效 |
示例:
{
}